home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Imagine the Universe (9th Edition)
/
Imagine the Universe 9 - Disc 1.iso
/
pc
/
imagine
/
YBA
/
HTCas-size
/
javascript
/
ang_prac.js
next >
Wrap
Text File
|
2003-01-12
|
759b
|
32 lines
size1 = "Blank";
size2 = "Blank";
function checkme() {
size1 = document.ang_prac.answer1.value - 0;
if (!size1) {size1 = "Blank";}
size2 = document.ang_prac.answer2.value - 0;
if (!size2) {size2 = "Blank";}
RightOnFile = './ang_prac-correct.html';
TryAgainFile = './ang_prac-close.html';
WayWrongFile = './ang_prac-wrong.html';
low1 = 8.58;
hi1 = 8.60;
low2 = 3.43;
hi2 = 3.45;
if (((size1 != "Blank") && (size1 >= low1) && (size1 <= hi1)) &&
((size2 != "Blank") && (size2 >= low2) && (size2 <= hi2))) {
location = RightOnFile;
}
else if (((size1 == "Blank") || ((size1 < low1) || (size1 > hi1))) &&
((size2 == "Blank") || ((size2 < low2) || (size2 > hi2))))
{
location = WayWrongFile;
}
else {
location = TryAgainFile;
}
}